    //
//  second.m
//  dianshi
//
//  Created by a on 10-11-8.
//  Copyright 2010 __MyCompanyName__. All rights reserved.
//
#import "second.h"
@implementation second
- (void)viewDidLoad {
    [super viewDidLoad];
}
-(IBAction)returnhome:(id)sender{
	NSLog(@"home");
	CATransition *animation = [CATransition animation];
    animation.duration = 1.25f;
    animation.timingFunction = UIViewAnimationCurveEaseInOut;
	animation.fillMode = kCAFillModeForwards;
	animation.type = kCATransitionPush;
	animation.subtype = kCATransitionFromRight;
	[self.view.superview.layer addAnimation:animation forKey:@"animation"];
	[self.view removeFromSuperview];
}
- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation {
    return YES;
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
}
- (void)viewDidUnload {
    [super viewDidUnload];
}
- (void)dealloc {
    [super dealloc];
}
@end
